/**
 * Created by 春旺 on 2017/3/24.
 */
//*********************************************************************************************************************
//  GradeRange.java          Java Foundations
//
//   Demonstrates the use of Grade objects and prints them.
//**********************************************************************************************************************

public class GradeRange
{
    //------------------------------------------------------------------------------------------------------------------
    // Grade an array of Grade objects and prints them.
    //------------------------------------------------------------------------------------------------------------------
    public static void main(String[] args)
    {
        Grade[] grades =
                {
                        new Grade("A", 95), new Grade("A-", 90),
                        new Grade("B",87), new Grade("B-",85),
                        new Grade("B-",80),
                        new Grade("C+", 77), new Grade("C", 75),
                        new Grade("C-",70),
                        new Grade("C-",60)
                };
        for (Grade letterGrade : grades)
            System.out.println(letterGrade);

    }
}
